const { DataTypes } = require('sequelize');
const sequelize = require('../db/seq')

const Goods = sequelize.define('node_banner', {
    bannername: {
        type: DataTypes.STRING,
        allowNull: false,
        comment: '轮播图名称',
        unique: true
    },
    url: {
        type: DataTypes.STRING,
        allowNull: false,
        comment: '轮播图名称'
    },
})

// 强制同步数据库(创建数据库表)
// force:ture 如果表存在就强行删除表,然后创建一个新的表
// Goods.sync({force:'ture'})

module.exports = Goods